package com.wu.Backstage.service;

import com.wu.Backstage.entity.Po.adminPo;
import com.wu.Backstage.entity.adminEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class adminService {

    @Resource
    private com.wu.Backstage.entity.adminEntity adminEntity;

    /**用户注册**/
    public adminPo AddUserEntityPo(adminPo adminPo)
    {
        adminPo stores = adminEntity.save(adminPo);
        return stores;
    }


    /**邮箱验证**/
    public adminPo findUserEntityPoEmail(String email)
    {
        adminPo stores = adminEntity.findUserEntityPoEmail(email);
        return stores;
    }

    /**邮箱验证**/
    public adminPo login(String email,String password)
    {
        adminPo stores = adminEntity.login(email,password);
        return stores;
    }

}
